﻿        @model  YodaMaster.Models.BrowseViewModel

@{
    ViewBag.Title = "Faculties";
}

<p></p>
<p></p>

@using (Html.BeginForm())
{
 <p>
      @Html.Label("Faculties:")
 
      @Html.DropDownListFor(m=>m.SelectedFaculty,Model.Faculty)

        <input type="submit" value="Next" />
    

 </p>

    }

<p></p>
<p></p>
<p></p>
<table border="1">
  <tr>
    <th>
        @Html.ActionLink("Faculty", "Index", new { sortOrder=ViewBag.NameSortParm })
    </th>
</tr>

@foreach (var item in Model.Faculty) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Text)
        </td>      
    </tr>
}

</table>